<?php
class ZMessageItem {
    /**
     * @var String
     */
    private $threadTitle;
    /**
     * @var String
     */
    private $lead;
    /**
     * @var String
     */
    private $text;
    /**
     * @var String
     */
    private $source;
    /**
     * @var String
     */
    private $url;
    /**
     * @var String
     */
    private $author;
    /**
     * @var String
     */
    private $postTitle;
    /**
     * @var DateTime
     */
    private $time;
    /**
     * @var string
     */
    private $leadAuthor;
    /**
     * @var String
     */
    private $authorUrl;
    /**
     * @var String
     */
    private $leadAuthorUrl;
    /**
     * @var Int
     */
    private  $numberOfLikes;
    /**
     * Thread id
     * @var Int
     */
    private $threadId;
    /**
     * Social media type
     * @var Int
     */
    private $type;
    /**
     * Post id
     * @var Int
     */
    private $id;

    /**
     * @param $threadTitle String
     * @param $lead String
     * @param $text String
     * @param $source String
     * @param $url String
     * @param $author String
     * @param $postTitle String
     * @param $time String
     * @param $leadAuthor String
     * @param $authorUrl String
     * @param $leadAuthorUrl String
     * @param $likes Int
     * @param $threadId Int
     * @param $type Int
     * @param $id Int
     */
    function __construct($threadTitle, $lead, $text, $source, $url, $author, $postTitle, $time, $leadAuthor, $authorUrl, $leadAuthorUrl, $likes, $threadId, $type, $id) {
        $this->threadTitle      = $threadTitle;
        $this->lead             = $lead;
        $this->text             = $text;
        $this->source           = $source;
        $this->url              = $url;
        $this->author           = $author;
        $this->postTitle        = $postTitle;
        $this->time             = $time;
        $this->leadAuthor       = $leadAuthor;
        $this->authorUrl        = $authorUrl;
        $this->leadAuthorUrl    = $leadAuthorUrl;
        $this->numberOfLikes    = $likes;
        $this->threadId         = $threadId;
        $this->type             = $type;
        $this->id               = $id;
    }

    /**
     * @return String
     */
    public function getThreadTitle(){
        return $this->threadTitle;
    }

    /**
     * @return String
     */
    public function getLead(){
        return $this->lead;
    }

    /**
     * @return String
     */
    public function getText(){
        return $this->text;
    }

    /**
     * @return String
     */
    public function getSource(){
        return $this->source;
    }

    /**
     * @return String
     */
    public function getURL(){
        return $this->url;
    }

    /**
     * @return String
     */
    public function getAuthor(){
        return $this->author;
    }

    /**
     * @return String
     */
    public function getPostTitle(){
        return $this->postTitle;
    }

    /**
     * @return DateTime
     */
    public function getTime(){
        return $this->time;
    }

    /**
     * @return int
     */
    public function getLeadAuthor(){
        return $this->leadAuthor;
    }

    /**
     * @return String
     */
    public function getAuthorUrl() {
        return $this->authorUrl;
    }

    /**
     * @return String
     */
    public function getLeadAuthorUrl() {
        return $this->leadAuthorUrl;
    }

    /**
     * Get thread ID
     * @return Int Thread ID
     */
    public function getNumberOfLikes(){
        return $this->numberOfLikes;
    }

    /**
     * Get post id
     * @return Int Id
     */
    public function getId(){
        return $this->id;
    }

    /**
     * Get thread id
     * @return Int
     */
    public function getThreadId() {
        return $this->threadId;
    }

    /**
     * Get social media type
     * @return Int
     */
    public function getType() {
        return $this->type;
    }
}
?>
